
<script type="text/javascript" src="scripts/formvalidator.js"></script>

<script type="text/javascript" language="javascript">
		$(document).ready(function() {
			$("#email").blur(function(event){
				var mail = $("#email").val();
				$('div#person_email').load('cntrlr/validInput.php', { ajaxCheck : true , email : mail});
			});
			$("#companyName").blur(function(event){
				var name = $("#companyName").val();
				$('div#companyName').load('cntrlr/validInput.php', { ajaxCheck : true , companyName : name});
			});

		});
</script>
<div class="registration">
	<form action="?page=registration" method="post" id="registrationForm" class="cmxform">
		<table width="800" height="500">
			<tr>
				<th colspan="3">
					Лична информация
				</th>
			</tr>
			<tr>
				<td width="110px">
					* Малко име :
				</td>
				<td>
					<input type="text" name="fname" id="fname"  maxlength="15"  value="<?php if (isset($_SESSION["fname"])) echo $_SESSION["fname"];?>"/>
				</td>
			</tr>
			<tr>
				<td>
					* Фамилия :
				</td>
				<td>
					<input type="text" name="lname" id="lname" maxlength="15"  value="<?php if (isset($_SESSION["lname"])) echo $_SESSION["lname"];?>"/>
				</td>
			</tr>
			<tr>
				<td>
					* E-Mail адрес :
				</td>
				<td>
					<input type="email" name="email" id="email" maxlength="30"   value="<?php if (isset($_SESSION["email"])) echo $_SESSION["email"];?>"/>
					<div id="person_email" class="error"></div>

				</td>
			</tr>
			<tr>
				<td>
					* Парола :
				</td>
				<td>
					<input type="password" name="pass" id="pass" maxlength="15"  value=""/>
				</td>
			</tr>
			<tr>
				<td>
					* Повтори паролата :
				</td>
				<td>
					<input type="password" name="pass2" id="pass2" maxlength="15"  value=""/>
				</td>
			</tr>
			<tr>
				<th colspan="3">
					Информация за фирма
				</th>
			</tr>
			<tr>
				<td>
					* Име :
				</td>
				<td>
					<input type="text" name="companyName" id="companyName" maxlength="25" value="<?php if (isset($_SESSION["companyName"])) echo $_SESSION["companyName"];?>"/>
					<div id="companyName" class="error"></div>
				</td>
			</tr>
			<tr>
				<td>
					* Населено място:
				</td>
				<td>
					<input type="text" name="companyCity" id="companyCity" maxlength="15"  value="<?php if (isset($_SESSION["companyCity"])) echo $_SESSION["companyCity"];?>"/>
				</td>
			</tr>
			<tr>
				<td>
					* Адрес :
				</td>
				<td>
					<input type="text" name="companyAddress" id="companyAddress" maxlength="100"  value="<?php if (isset($_SESSION["companyAddress"])) echo $_SESSION["companyAddress"];?>"/>
				</td>
			</tr>

			<tr>
				<td>
					* МОЛ :
				</td>
				<td>
					<input type="text" name="respOfficial" id="respOfficial" maxlength="50"  value="<?php if (isset($_SESSION["respOfficial"])) echo $_SESSION["respOfficial"];?>"/>
				</td>
			</tr>
			<tr>
				<th colspan="3">
					Информация за Магазин
				</th>
			</tr>
			<tr>
				<td>
					* Име :
				</td>
				<td>
					<input type="text" name="shopName" id="shopName" maxlength="25"  value="<?php if (isset($_SESSION["shopName"])) echo $_SESSION["shopName"];?>"/>
				</td>
			</tr>
			<tr>
				<td>
					* Населено място:
				</td>
				<td>
					<input type="text" name="shopCity" id="shopCity" maxlength="15"  value="<?php if (isset($_SESSION["shopCity"])) echo $_SESSION["shopCity"];?>"/>
				</td>
			</tr>

			<tr>
				<td>
					* Адрес :
				</td>
				<td>
					<input type="text" name="shopAddress" id="shopAddress" maxlength="100"  value="<?php if (isset($_SESSION["shopAddress"])) echo $_SESSION["shopAddress"];?>"/>
				</td>
			</tr>
			<tr>
				<td>
					* Телефон :
				</td>
				<td>
					<input type="text" name="phone" id="phone" maxlength="15"  value="<?php if (isset($_SESSION["phone"])) echo $_SESSION["phone"];?>"/>
				</td>

			</tr>
			<tr>
				<td>
					<input type="submit" name="go" value="Регистрация" id="go"  value="<?php if (isset($_SESSION[""])) echo $_SESSION[""];?>"/>
				</td>
				<td>

				</td>
			</tr>
		</table>
	</form>
</div>